@extends('home.layouts._center')
@section('content')
    <div class="mod_main">
        <div class="jib_xinx_kuang">
            <div class="shand_piaot">修改密码</div>
            <div class="stepflex">
                <dl class="normal doing">
                    <dt class="s-num">1</dt>
                    <dd class="s-text">验证身份<s></s><b></b></dd>
                </dl>
                <dl class="normal ">
                    <dt class="s-num">2</dt>
                    <dd class="s-text">修改密码<s></s><b></b></dd>
                </dl>
            </div>



            <form action="{{route('home.center.checkCode')}}" method="post">
                @csrf
                <div class="savebox">
                    <p>
                        <span class="letit">邮箱地址：</span>
                        <input class="hideMobile" name="email" value="{{auth()->user()->email}}" readonly>
                        <span class="ml20">若当前邮箱无效或无法接收验证码，请拨打客服电话：18335460350</span>
                    </p>
                    <p>
                        <span class="letit">填写邮箱验证码：</span>
                        <span class="hideMobile"><input class="itxt" name="code" type="text"></span>
                        <span><a href="javascript:;" class="btn_10" id="cod"><s></s>获取邮箱校验码</a></span>
                    </p>
                    <p>
                        <span class="letit"></span>
                        <span class="hideMobile"><button type="submit" style="width: 100px;height: 30px" >下一步</button></span>
                    </p>
                </div>
            </form>



            <script>
                // 发送邮箱验证码
                require(['hdjs','bootstrap'], function (hdjs) {
                    let option = {
                        //按钮
                        el: '#cod',
                        //后台链接
                        url: "{{route('common.code.sendToUser')}}",
                        //验证码等待发送时间
                        timeout:"30",
                        //表单，手机号或邮箱的INPUT表单
                        input: '[name="email"]',
                    };
                    hdjs.validCode(option);
                })
            </script>
        </div>
    </div>
@endsection
